package com.itheima.reggie.service;

import com.itheima.reggie.domain.Employee;
import com.itheima.reggie.common.ResultInfo;

import java.util.List;

//员工的业务层接口
public interface EmployeeService {
    //登录
    ResultInfo login(String username, String password);

    //根据员工姓名查询员工列表
    List<Employee> findByName(String name);

    //新增员工
    void save(Employee employee);

    //回显员工
    Employee findById(Long id);

    //修改员工
    void update(Employee employee);
}
